package com.nidu.demo.notify.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.notify.mapper.dataobject.NotifyMessageDO;
import com.nidu.demo.notify.mapper.dataobject.NotifyTemplateDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 站内信模板Mapper
 *
 * @author auto
 */
@Mapper
public interface NotifyTemplateMapper extends BaseMapper<NotifyTemplateDO> {

    @Select("SELECT * FROM sys_notify_template WHERE code = #{code} LIMIT 1")
    NotifyTemplateDO selectByCode(String code);

}
